<%const abc = ["A","B","C","D","E","F"]%>
<%data.forEach((item,index_)=>{%>
<%if(item.type && item.type =="select"){%>
<div class="tm">
  <div><%=item.id%>.
    <%item.timu.forEach((timu)=>{%>
    <%if(timu.type=="img"){%>
    <img src="<%=require(`./images/${dir}/${timu.value}.png`)%>" alt="">
    <%}else {%>
    <%=timu.value%>
    <%}%>
    <%})%>
  </div>
  <div class="option">
    <div class="layui-form-item">
      <div class="layui-input-block">
        <%item.options.forEach((opt,index)=>{%>
        <label>
          <input type="radio" name="o${index_+1}" value="content[<%=index+1%>]" title="<%=abc[index]%>.">
          <%if(opt.type && opt.type=="img"){%>
          <img src="<%=require(`./images/${dir}/${opt.value}.png`)%>" alt="">
          <%}else{%>
          <%=opt.value%>
          <%}%>
        </label>
        <%})%>
      </div>
    </div>
  </div>
</div>
<div class="btn">
  <%if(index_ == 0){%>
  <a>上一题</a>
  <%}else{%>
  <a href>上一题</a>
  <%}%>
      <button type="submit">下一题</button>
    </div>
  <%}else{%>
  <div class="tm">
    <div><%=item.id%>.
      <%item.timu.forEach((timu)=>{%>
      <%if(timu.type && timu.type=="img"){%>
      <img src="<%=require(`./images/${dir}/${timu.value}.png`)%>" alt="">
      <%}else{%>
      <%=timu.value%>
      <%}%>
        <%})%>
    </div>
    <%if(type!=="article"){%>
      <textarea name="content"></textarea>
    <%}%>
    <%=require(`../upload/index.ejs`)()%>
  </div>
  <div class="btn">
    <%if(index_){%>
    <a href>上一题</a>
    <%}%>  
      <%if(index_==data.length-1){%>
    <button type="submit" html="show">提交</button>
    <%}else{%>
    <button type="submit">下一题</button>
    <%}%>
    </div>
  <%}%>
    <%})%>